package io.bluerain.bocket.message;

import io.bluerain.core.Obj;

/**
 * Created by foredawn on 15-8-14.
 * 文本消息
 */
public class TextMessage extends Message {

    private StringBuilder text = new StringBuilder();

    public void putln(String text) {
        this.text.append(text);
    }

    public void setText(String text) {
        this.text.append(text);
    }

    public String getText() {
        return this.text.toString();
    }

    public TextMessage(String text) {
        setText(text);
        this.setType(MessageType.TEXT);
    }
}
